import { View } from "../../../mvc/core/View";
import { ObjCreate } from "../common/ObjCreate";
import { PublicMessageConfig } from "../../resource/PublicMessageConfig";
import { GScrollPane } from "../../../../com/mui/controls/GScrollPane";
import { ScrollPolicy } from "../../../../fl/controls/ScrollPolicy";
//class KWFinalRule
    
    export  class KWFinalRule extends View
    {
        constructor()
        {
            super();
            this.initView();
            return;
        }

        /* internal  */initView(): void
        {
            this._txDescRight = ObjCreate.createTextField("", 6, 2, 374, -1, this);
            this._txDescRight.wordWrap = true;
            this._txDescRight.multiline = true;
            this._txDescRight.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._txDescRight.htmlText = PublicMessageConfig.instance.getArenaAdRule("FinalRule");
            this._contentPane = new GScrollPane();
            this._contentPane.styleName = "GScrollPane";
            this._contentPane.verticalScrollPolicy = ScrollPolicy.ON;
            this._contentPane.horizontalScrollPolicy = ScrollPolicy.OFF;
            this._contentPane.width = 383;
            this._contentPane.height = 330;
            this._contentPane.x = 6;
            this._contentPane.y = 2;
            this._contentPane.source = this._txDescRight;
            this.addChild(this._contentPane);
            this._contentPane.update();
            return;
        }

        /* internal */ /* var */_contentPane: GScrollPane;

        /* internal */ /* var */_txDescRight: Object /* flash.text.TextField */;
    }
